<table class="dux-order-layout">
    <tr>
        <td width="300" class="layout-l">
            <div class="dux-box">
                <div class="box-header">订单信息</div>
                <div class="box-body dux-order-info">
                    <dl>
                        <dt>订单号:</dt>
                        <dd>
                            {$info.order_no}
                        </dd>
                    </dl>
                    <dl>
                        <dt>卖家:</dt>
                        <dd>
                            <a href="{$info.order_seller_url}">{$info.order_seller_name}</a>
                        </dd>
                    </dl>
                    <dl>
                        <dt>收货姓名:</dt>
                        <dd>
                            {$info.receive_name}
                        </dd>
                    </dl>
                    <dl>
                        <dt>收货地区:</dt>
                        <dd>
                            {$info.receive_province} {$info.receive_city} {$info.receive_region}
                        </dd>
                    </dl>
                    <dl>
                        <dt>收货地址:</dt>
                        <dd>
                            {$info.receive_address}
                        </dd>
                    </dl>
                    <dl>
                        <dt>收货电话:</dt>
                        <dd>
                            {$info.receive_tel}
                        </dd>
                    </dl>

                    <dl class="line">
                        <dt>支付方式:</dt>
                        <dd>
                            {$info.pay_type ? '在线支付' : '货到付款'}
                        </dd>
                    </dl>

                    <dl>
                        <dt>支付费用:</dt>
                        <dd>
                            <span class="am-text-danger">￥{$info.order_price}</span>
                        </dd>
                    </dl>

                    <dl>
                        <dt>运费:</dt>
                        <dd>
                            <span class="am-text-danger">￥{$info.delivery_price}</span>
                        </dd>
                    </dl>

                </div>
            </div>

        </td>
        <td class="layout-r  ">

            <div class="dux-timeline dux-order-log">
                <!--if{empty($logList)}-->
                <dl>
                    暂无订单记录
                </dl>
                <!--{/if}-->
                <!--loop{$logList as $vo}-->
                <dl class="am-cf">
                    <dt>{date('Y-m-d H:i:s', $vo.time)}</dt>
                    <dd>{$vo.msg}</dd>
                </dl>
                <!--{/loop}-->
            </div>
        </td>
    </tr>

</table>

<!--if{$info.pay_type}-->
<div class="dux-step">
    <dl class="{$orderStep >= 1 ? 'active' : ''}">
        <dt>提交订单</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <dd class="date">{date('Y-m-d H:i:s', $info.order_create_time)}</dd>
    </dl>

    <dl class="{$orderStep >= 2 ? 'active' : ''}">
        <dt>确认付款</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <!--if{$info.pay_status}-->
        <dd class="date">{date('Y-m-d H:i:s', $payInfo.time)}</dd>
        <!--{/if}-->
    </dl>
    <dl class="{$orderStep >= 3 ? 'active' : ''}">
        <dt>商品发货</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <!--if{$info.delivery_status}-->
        <dd class="date">{date('Y-m-d H:i:s', $deliveryInfo.delivery_create_time)}</dd>
        <!--{/if}-->
    </dl>
    <dl class="{$orderStep >=4 ? 'active' : ''}">
        <dt>确认收货</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <!--if{$info.order_complete_status}-->
        <dd class="date">{date('Y-m-d H:i:s', $info.order_complete_time)}</dd>
        <!--{/if}-->
    </dl>
    <dl class="{$orderStep >= 4 ? 'active' : ''}">
        <dt>完成订单</dt>
        <dd class="node"></dd>
        <dd class="date"></dd>
    </dl>
</div>
<!--{else}-->

<div class="dux-step">
    <dl class="{$orderStep >= 1 ? 'active' : ''}">
        <dt>提交订单</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <dd class="date">{date('Y-m-d H:i:s', $info.order_create_time)}</dd>
    </dl>
    <dl class="{$orderStep >= 2 ? 'active' : ''}">
        <dt>商品发货</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <!--if{$info.delivery_status}-->
        <dd class="date">{date('Y-m-d H:i:s', $deliveryInfo.delivery_create_time)}</dd>
        <!--{/if}-->
    </dl>
    <dl class="{$orderStep >= 3 ? 'active' : ''}">
        <dt>确认收货</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <!--if{$info.order_complete_status}-->
        <dd class="date">{date('Y-m-d H:i:s', $info.order_complete_time)}</dd>
        <!--{/if}-->
    </dl>

    <dl class="{$orderStep >= 4 ? 'active' : ''}">
        <dt>确认付款</dt>
        <dd class="bg"></dd>
        <dd class="node"></dd>
        <!--if{$info.pay_status}-->
        <dd class="date">{date('Y-m-d H:i:s', $payInfo.time)}</dd>
        <!--{/if}-->
    </dl>

    <dl class="{$orderStep >= 4 ? 'active' : ''}">
        <dt>完成订单</dt>
        <dd class="node"></dd>
        <dd class="date"></dd>
    </dl>
</div>

<!--{/if}-->
<br>
<div class="dux-page">
<table class="am-table  am-table-bordered">
    <thead>
    <th>商品</th>
    <!--if{$info.status_data.action == 'comment' || $info.status_data.action == 'complete'}-->
    <th width="100" class="am-text-center">售后</th>
    <!--{/if}-->
    <th width="200" class="am-text-center">合计</th>
    <th width="110" class="am-text-center">状态</th>
    <th width="110" class="am-text-center">交易操作</th>
    </thead>

    <tbody>

    <?php $i=0; ?>
    <!--loop{$orderGoods as $k => $item}-->
    <?php $i++; ?>
    <tr>
        <td class="am-text-middle">
            <div class="am-fl">
                <a href="{$item.goods_url}" target="_blank"><img src="{$item.goods_image}" width="64"
                                                                 height="64"></a>
            </div>
            <div style="margin-left: 75px">
                <div><a href="{$item.goods_url}" target="_blank" class="link">{$item.goods_name}</a>
                </div>
                <div class="dux-text-disabled">
                    <!--if{$item.goods_options }-->
                    <!--loop{$item.goods_options as $v}-->
                    {$v.name}: {$v.value}
                    <!--{/loop}-->
                    <!--{/if}-->
                </div>

                <div class="dux-text-disabled">￥{$item.goods_price} × {$item.goods_qty}</div>


            </div>
        </td>

        <!--if{$info.status_data.action == 'comment' || $info.status_data.action == 'complete'}-->
        <td class="am-text-middle am-text-center">
            <!--if{!$item.service_status}-->
            <p><a href="{url('order/refund/push', ['id' => $item.id])}">退款</a>/<a href="{url('order/return/push', ['id' => $item.id])}">退货</a></p>
            <!--elseif{$item.service_status == 1}-->
            <p>售后处理中</p>
            <!--elseif{$item.service_status == 2}-->
            <p>售后完成</p>
            <!--{/if}-->

            <p>
                <!--if{$item.comment_status}-->
                <a href="{$item.goods_url}" target="_blank" class="am-text-danger">已评价</a>
                <!--{else}-->
                <a href="{url('order/comment/push', ['id' => $item.id, 'action' => url('', ['order_no' => $info.order_no])])}" class="am-text-warning">评价商品</a>
                <!--{/if}-->
            </p>
        </td>
        <!--{/if}-->

        <!--if{$i == 1}-->
        <td class="am-text-center" rowspan="{count($orderGoods)}" width="200">
            <div class="am-text-danger">￥{$info.total_price}</div>
            <div class="am-text-sm dux-text-disabled">(含运费￥{$info.delivery_price})</div>
            {$info.pay_type ? '在线付款' : '货到付款'}
        </td>
        <td class="am-text-center" rowspan="{count($orderGoods)}" width="110">
            <div>{$info.status_data.name}</div>
            <!--if{$orderStep > 2}-->
            <p><a href="{url('order/Order/delivery', ['order_no' => $info.order_no])}" >查看物流</a></p>
            <!--{/if}-->
        </td>
        <td class="am-text-center" rowspan="{count($orderGoods)}" width="100">

            {$info.status_data.html}
        </td>
        <!--{/if}-->
    </tr>
    <!--{/loop}-->
    
    </tbody>
</table>
</div>

<p>买家留言:{$info.order_remark ? $info.order_remark : '无'}</p>